import apibase from "@/api/apiBase";
import axios from "axios";
import { loginInterface } from "./admin.interface";

//登录
export const $login = (params: loginInterface) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/travel/auth/login',
    data: params,
    instance,
  });
}


//修改密码
export const $modifyPassword = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/travel/channelAdmin/modifyPassword',
    data: params,
    instance,
  });
}

